package com.cybertron.ironhide.search.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cybertron.ironhide.search.domain.Article;
import com.cybertron.ironhide.search.persistence.ArticleMapper;
import com.cybertron.ironhide.search.service.ArticleService;

@Service
public class ArticleServiceImpl implements ArticleService {

	@Autowired(required = false)
	private ArticleMapper articleMapper;

	@Override
	public List<Article> selectTop(Integer type, Integer topNum) {
		return articleMapper.selectTop(type, topNum);
	}

}
